Skip to content

chore: consolidate phpunit test env on WP_TESTS_DIR#411

Open
imantsk wants to merge 1 commit into
core-betafrom
chore/consolidate-phpunit-test-env
Open

chore: consolidate phpunit test env on WP_TESTS_DIR#411
imantsk wants to merge 1 commit into
core-betafrom
chore/consolidate-phpunit-test-env

Conversation

@imantsk

@imantsk imantsk commented Jun 19, 2026

Copy link
Copy Markdown
Member

Changes

  • Removed the WP_DEVELOP_DIR branch from tests/bootstrap.php.
  • Removed WP_DEVELOP_DIR=./.wp-core from the test:php script in package.json.
  • Removed WP_DEVELOP_DIR from the PHPUnit run example in tests/README.md.
  • Deleted tests/install.sh (unreferenced; sole consumer of WP_DEVELOP_DIR).

Test setup now uses WP_TESTS_DIR + WP_CORE_DIR only, matching CI and tests/install-wp-tests.sh.

Verification

  • WP_TESTS_DIR=./.wp-tests-lib src/vendor/bin/phpunit -c phpunit.xml: 106 passed, 25 skipped.
  • With WP_DEVELOP_DIR=/bogus set and WP_TESTS_DIR unset: 106 passed (falls back to .wp-tests-lib autodetect).

@imantsk imantsk added the run-tests Trigger automated tests label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests Trigger automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant